package org.x.user.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class LoginDTO {

    @NotEmpty(message = "用户名不能为空")
    private String username;
    /**
     * 密码必须包含数字和字母
     */
   // @Pattern(regexp = "^(?=.*[a-zA-Z])(?=.*\\d).{6,12}$",message = "密码必须包含数字和字母，6-12位")
    private String password;

}
